﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AGVUppCom
{
    public delegate void DelegateMethod(string x);
    public partial class frmDebug : Form
    {
        
        public frmDebug()
        {
            InitializeComponent();
        }
        public void ChangeTime(string x)
        {
            if (checkBox1.Checked == true)
            {
                this.Invoke(new Action(() => richTextBox1.AppendText(x + "\r\n")));
            }
        }

        private void frmDebug_Load(object sender, EventArgs e)
        {
            checkBox1.Checked = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.richTextBox1.Clear();
        }

        private void frmDebug_FormClosed(object sender, FormClosedEventArgs e)
        {
            Form1.frmDebuglogIsOpen = false;
        }
    }
}
